import pygame

import player, shot


class screen():



    def __init__(self):
        self.xsize = 1024
        self.ysize = 786
        self.sh = shot.shot()
        self.screen = pygame.display.set_mode((self.xsize, self.ysize))
        self.screen.fill((0, 0, 0))       
        self.pl = player.player()



    def draw_player(self):
        self.screen.blit(pygame.image.load('img/ball.png'), (self.pl.posX, self.pl.posY))
        
    def draw_shot(self):
        shot.shot_obj = screen.blit(pygame.image.load('img/bullet2.png'), (self.sh.shot_objx, self.sh.shot_objy))
        
    def draw_shot2(self):
        img = pygame.image.load('img/bullet2.png')
        img = pygame.transform.scale(img, (10,42) )    
        
    def undef_shot(self):
        shot.shot_obj = self.screen.blit(self.screen.img, (self.sh.shot_objx, self.sh.shot_objy))
        
    def update_screen(self):
        pygame.display.update() #Screen refresh